package com.red.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户旅行笔记表
 * </p>
 *
 * @author author
 * @since 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("travel_notes")
@ApiModel(value="TravelNotes对象", description="用户旅行笔记表")
public class TravelNotes implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "笔记唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "作者ID")
    private Long userId;

    @ApiModelProperty(value = "笔记标题")
    private String title;

    @ApiModelProperty(value = "封面图地址")
    private String coverUrl;

    @ApiModelProperty(value = "笔记正文内容")
    private String content;

    @ApiModelProperty(value = "发布时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "点赞数量")
    private Long likeNumber;

    @ApiModelProperty(value = "发布状态 0为冻结 1为正常")
    private Integer publish;

    @ApiModelProperty(value = "驳回理由")
    private String remark;

    @ApiModelProperty(value = "审批状态")
    private Integer approveStatus;
}
